<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;
use Think\Model;
/**
 * Description of GoodsTagsModel
 *
 * @author Administrator
 */
class GoodsTagsModel extends Model {
    //put your code here
    protected  $tableName = 'goods_tags';
    
    protected $_auto = array ( 
        array('ctime','time',1,'function')
    );
    
    public function getList($where=[]){
        return $this->where($where)->select();
    }
    
    public function getTagsInfoById($id){
        return $this->where("id=".$id)->find();
    }
}

